package com.example.base.ui

import androidx.compose.material.ButtonColors
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.ui.graphics.Color

/**
 * zhangjunfei  2020/11/16 15:54
 */
@OptIn(ExperimentalMaterialApi::class)
class CommonButtonColors(
    private val bgColor: Color = orange,
    private val textColor: Color = white
) :
    ButtonColors {
    override fun backgroundColor(enabled: Boolean): Color {
        return bgColor
    }

    override fun contentColor(enabled: Boolean): Color {
        return textColor
    }
}